package markgame2d.engine.mover;

import markgame2d.engine.interfaces.Moveable;

public class MarkConstantMover implements MarkMover{

	private Moveable moveable;
	public float vx;
	public float vy;
	
	public MarkConstantMover(Moveable moveable, float vx, float vy) {
		this.moveable = moveable;
		this.vx = vx;
		this.vy = vy;
	}
	
	public Moveable getMoveable() {
		return moveable;
	}
	public void setMoveable(Moveable moveable) {
		this.moveable = moveable;
	}
	public void move(float time) {
		moveable.move(vx*time, vy*time);
	}
	
	
}
